<?php
// defined('BASEPATH') OR exit('No direct script access allowed');

// class Banke extends User_Controller {

	// public function __construct()
 //    {
 //        parent::__construct();
 //        // Your own constructor code
 //        $this->smarty->assign("current_class", $this->router->fetch_class());
 //        $this->smarty->assign("current_method",$this->router->fetch_method());
	// 	$this->uid = $this->user_data['id'];
	// 	if( $this->logged_in==0) {header("Location:/");exit;}
 //    }


	//面授课订单列表
	 
	// public function orders($limit = 0)
	// {
	// 	$this->offset = 10;

	// 	$this->load->model('Offline_Course_Order');
	// 	$result = $this->Offline_Course_Order->get_offline_order_list_by_user($limit,$this->offset,$this->user_data['id'],3,-1,"","","");

	// 	// print_r($result['result']);exit;
	// 	$order_list  = $result['result'];

	// 	for ($i=0; $i < count($order_list); $i++) { 
	// 		//查询order_itme
	// 		$order_list[$i]['item'] = $this->Offline_Course_Order->get_order_item_by_order_id($order_list[$i]['order_id']);
	// 	}
		

	// 	$this->smarty->assign("order", $order_list);
	// 	//分页
	// 	$this->load->library('pagination');
	// 	$page_config['base_url'] = '/user/banke/order/';
	// 	$page_config['total_rows'] = $result['total_count'];
	// 	$page_config['per_page'] = $this->offset;
	// 	$this->pagination->initialize($page_config);
	// 	$pagination = $this->pagination->create_links();

	// 	$this->smarty->assign("pagination", $pagination);

	// 	$this->smarty->assign("menu", "orders");
	// 	$this->smarty->display("user/banke_order.html");
	// }

// }